Fix misconfigured pathauto for photos