Added error-type check in shutdown handler
Added removal of instance in __destruct()
finalized _doLoadImages() in InternalImages class
Moved resources to appropriate locations