support jpeg format
update makefile