Solved issue #48

Fixed issue by adding transparency to similarValue calculation
Added additional test to check if only area within a border is filled