Pin fixes and viewProfiles.php fixes

Pins now correctly display the image from the board when displayed by
viewpinmodal.php. It is now set through a variable in the for loop in
pins.php. Also, there are some rearrangements in viewProfiles.php