canvas fade to opacity 0.5 when stroke xml not found