Serialize image into command for transmit (#40)