generating pages controller and adding image