Wait until image is loaded

Wait until image is loaded

Hi, i need some help here, I need my code to execute something BEFORE image is loaded, but I dont know how :(