Modified directory code to display picture from path specified in database rather than hard coded path