'Return image data as array.
Array contains the image content type and image binary
Parameters required:    img { Plex image location }
Optional parameters:    width { the image width }
height { the image height }
Output: array'

def get_image(self, img=None, width='1000', height='1500'):

    if img:
        params = {'url': ('http://127.0.0.1:32400%s?%s' % (img, urllib.urlencode({'X-Plex-Token': self.token})))}
        if (width.isdigit() and height.isdigit()):
            params['width'] = width
            params['height'] = height
        uri = ('/photo/:/transcode?%s' % urllib.urlencode(params))
        result = self.request_handler.make_request(uri=uri, proto=self.protocol, request_type='GET', return_type=True)
        if (result is None):
            return
        else:
            return (result[0], result[1])
    else:
        logger.error(u'PlexPy    Pmsconnect    ::    Image    proxy    queried    but    no    input    received.')
