fix PNG image cropping bug