corrected returned image dimensions