Image loop - Added active block code for right and left block groups.