Adds random image processing function