apply zindex to images