fixing stupid little bug which showed always the first image instead of a random one