imgutils: add function to clear an image to black