Support for getting image size.