Added and tested support for already loaded image