modifies image size.