Added image resizing.