Implemented random image generator.