':param data: Underlying image data object
:param limit: maximum number of bytes the reader should allow'

def __init__(self, data, limit):

    self.data = data
    self.limit = limit
    self.bytes_read = 0
