added png and jpeg headers