added support for custom images