Avoiding initial image being randomized twice