Refactor to use JSON to transmit collection and image data