added some code to replace image with rando image