Corrected the math to account for the image size skew. #350