Throw error when unable to obtain image dimensions.