Changed conversion of size of arrays.
Added json library.
Just finished writing get images from server. Hopefully it works.