image gallery first changes to support group galleries in future