added support for random image types