Add extern to finalimage declaration in view.c