added domain package, improved image loading