Update API to separate image metadata from image