look for layers, not layer
do not flip x coordinate for shapes placed on the bottom layer