Added images and imagePrefix etc to opts; reconfigured constructor.