Added support for image or other resources