numimages xx must be an integer