Remove redundant call to ResourceImage::GetImageSize()