image Loop fix