added visit model and integrated into images controller