implement the method to getTrimap....