fixed images model and controller and gallery model