added ImageToData transformer for CoreData