create methods to convert drawing into byte array in order for alljoyn to transfer