admin edit image gallery page fixes