Preserve original file permissions and owners

imgopt copies the file several times using CP command but also the optimizers create new files. It is important an unique and safe way to preserve original permissions of the file.