Update images controller to remove struct