Embed image in different file formats