Update gallery image to layout based on image across settings