resize and convert my photo to PNG