added support for images