convert image to JSON with canvas like object (property width, height, data and transparencyList)