Added scroll centering to photo popups