Fix bug (photo not loading) on load directory