fix imagejpeg() parameter, should be NULL instead of empty string

fix imagejpeg() parameter, should be NULL instead of empty string