upload images with binary encoding