More reliable loading of image size in ImageUploader.