add resizing/cropping for png images