Support jpg and png