Now support writing binary files like images