Moved directive and controller for imageRotator to different files