added support for image sequences