changed the format of photo