fixed images and options throwing errors if nil