add random image functionality