image representation

completed image representation, could not test it!!!