added img files and made loops