On rebuild of ionic ios application, Stored images are deleted/removed

Am building ionic application to store images locally.

Am saving the the image path in sqlite db.

For storing images am using cordova file plugin. Images are getting stored fine. But once i rebuild the application. The stored images on last build are getting deleted or removed from the stored directory.

Am not able to view the same image in view page.

Am not facing same problem in android platform

Please let me know if i had do something for ios part