fixed bug related to jpeg source download