I believe you can set the z-index to place images in different layers, and then lock those images with the above code.