Shape image tests shape-margin + shape-image-threshold