option to turn off pixel dataloss

remaking the pull request for a customise function for turning off the pixel dataloss