Some fixes in ImagesController added