'Generates a very hard to compress file
:param size: tuple
:param mode: optional image mode'

def gen_random_image(self, size, mode='RGB'):

    return Image.frombytes(mode, size, os.urandom(((size[0] * size[1]) * len(mode))))
