Convert images to png and gif