fixed PNG image crop bug