randomised image script for home page complete