Improvements to image handling.
Upload and download media files during sync.