should write out image as binary data