Fix wrong type for DEPTH24_D8/DEPTH16

thanks @unknownbrackets  point this out