Sync version of image.getSize()