added gif, png, and jpg parsing