Fixed so it actually outputs a real image