only support png and jpg