refactor images controller and update todos