moved image stuff to its own mixin