Drivers now specify the size of the image they provide, and theres an API so that you can get the size of an image before you capture it.