added image controller with before, during, after view files