Added image resizing

Optional image resizing feature added.