Added a way to get all images from the database and save them to a filepath