fixed image data encoding
fixed HTTP request for real, added spinner