bug fixes and add opacity to detected objects