Refactoring for gel image