testing image loops