Add option for passing user-defined image metadata