Images refactor

Some refactoring of wagtail images. This isn't the recently discussed backends refactor.

See commit log for details.