add resize to images