edited jpeg generation