Image, HTML5/Flash: Resize taking Orientation tag into account. Introduce an option to not preserve headers, if not needed. Strip any meta headers on JPEGs before adding modified ones.