I'm not sure what you mean by "derived". The image gallery or any of the modules are not intended to function as base classes.
Maybe you mean copy and paste re-use of the code to make a new module in which case you need to name the ModuleControl.ascx and all its supporting classes and pages different than the ones you copied to avoid conflicts.
Joe