code refactoring of image functions to an OOP aproach, keeping backward compatibility
updated comments on barcode functions file