Primary border detection fix attempt #2

* The height properties don't work if the image has to load.