Node module for generating random images