making app usable during jpeg load

Hi

I have an app which loads a viewer, however during jpeg load it seizes all
control of my app, how can i allow my app to keep functioning, eg  you
might select a different file halfway through loading.

Thanks in advance

Nigel