rotate image before uploading, since png does not store orientation meta-data