Fix some issues with stacked background images

Smaller background images will now always be rendered on top of larger ones. And I also fixed some weird issues around dragging/resizing background images when they’re stacked on top of each other.

Happy Shmepping ya’ll!