added random function and images