- added support for custom image insertion