def convert_rgb_to_rgba(row, result):
    """Convert an RGB image to RGBA. This method assumes the
        alpha channel in result is already correctly initialized.
        """
    for i in range(3):
        result[i::4] = row[i::3]
