Generates ansi-image from image