make photo path relative