code refactoring of images functions
code refactoring of barcode functions to an OOP aproach, keeping backward compatibility