major updates to image rendering to cope with memory issues and blocking browser.

Signed-off-by: Jon Yardley <Jon.Yardley@digitaslbi.com>