class for manage images