Convert an image to a wave