updated whitebalance and added target detector