Revert "Revert "Add constructor for CreateImage""

This reverts commit ca4799e4bb63a47f980fd45b899a590415399237.