Media Gallery Improvements and bug fixes.