Corrected a bug in size dimensions of thumbnail image when being drawn to CGContext.