Added methods to create a public directory for the saving of an image