Sets the image depth.