Updated the deleteFile method so it deletes all sizes of an image