I used Photoshop's "Hat" tool to turn this image of a hat into a hat.