Swift 4: Image from Core Data upside down