Adding support for using assets directory for images.