Shape stdin with an image