fixed transfering empty jpeg bug