bugfix - prevent crash when no images are set