attempted to loop pictures