ADDED support for image directive