add control parameters jpg_w for jpg file width ,and jpg_h for jpg file height