fixed error when no marker is in image