Ignore unsupported query parameters.

Support only source, resize, perspective for now. Improve error message and code tidy.