Added few error messages in cjpeg