896 media gallery

#896.  Media gallery general fixes and file size limit.