Added bugfix to prevent a very sporadic error that occurred when puzzle.php wasn't loaded before the images.