added png and gif to image support