Fix gallery image refs