Generating my images controller