Revise images controller for compatibility with current Dragonfly.

This code was trying to rescue
Dragonfly::FunctionManager::UnableToHandle, which has been removed from
the current version of Dragonfly.