example is now img2if, supports jpg, gif