Reworked the file saver to handle the deletion of images and add new image with different increments