Moved "images" block to the separate middleware.