'Check and fix the size of the image to 32 bits'

def _check_image_size(self, size):

    if ((size % 32) == 0):
        return (0, 0)
    else:
        image_border = (32 - (size % 32))
        if ((image_border % 2) == 0):
            return ((image_border / 2), (image_border / 2))
        else:
            return ((image_border / 2), ((image_border / 2) + 1))
