i want to open raw/nef photo in imagej and perform some color analysis so i need best quality possible. before I do that i need to open raw/nef in photoshop and adjust the curves to match some color, then save it. i open it with ProPhotoRGB, 16 bits. what is the best way not to loose quality or loose as low as possible during that process? should I save it as raw/nef once again or tiff?