Loading bar within Scotty's Image Resize Gallery

I have the gallery working perfectly, i also have a loading bar script ive got seperatly working. But does anyone know how i can work the 2 together so that as an image loads the loading bar shows in the centre of the box?
thanks