Add option for jpeg output