revert the change to jpg