added support for two images