Make processed images available after "onload"

Previously they were available immediately which seemed to cause
problems in Firefox.