fixed length issue

The maximum message length before was 255 bits; with this change, the maximum message length if 255*100 + 255*10 + 255 chars. Ideally, we should have the image_height*image_width*3 as max.