Managed to make the connectionbettwern gui and geotiff