Apply patches on media gallery