Fixed a bug with bounding box size after image resize