Pass the app via the constructor into the Coanda instance.
Unused variable.
The invalid fields variable should always be an array.
Unused variable.
Bit of tidying up of duplicated code in the image handler.
Invalid fields must be an array.