img-res refactoring
gallery component wip