More before_filter simplications

Instead of duplicating the before_filter across multiple controllers,
we can include it in the base class and only execute it if appropriate,
i.e. when the edition type supports images