Unused code removal.
Added setResolution test.
Fixed setResolution() (Bug #550).
Added test image.
Merge pull request #551 from libavg/bugfix/550_scaledown

Fix #550