Added support for media type on upload.
Implemented on-demand image resizing service.