error handling for directory stuff + use absolute path for photos