fixed null pointer exception in retrieving image files from storage