added controller and tests for images controller