Implemented new media management for image uploads (thanks @jthomasgriffin).