Set output format of the image