modifies the photo size