http://www.techworked.com/wp-content/uploads/2017/05/image-file-writing-in-linux.png