Image Loop - Reintegrated block randomizing function.