add write image from byte[]