fixed bug for cropping hdr pics