Added image resizing