persist imageMetaData in db