Added templates support for images builds.