store images in file instead of coredata