ImagesController almost fully functional