Image fails to load in rare cases. Preload issue?

@sebastienmoutondev This page doesn’t work at all. I get multiple images displayed at once, or none at all. If you check the logic, I’m sure you’ll see that it in itself is problematic and not what you intend.

For now, I hope that QA can deal with the original page even though it’s quite complex.