add resize to image