removed unused line
implemented endless image loop