_copy_to_frontend function takes care of abstracting this code from the driver. For now the function takes care of the offset and rotation that is common.