Added IllegalInvocationException for depth() and getColors()