Remove an unused function.
Check for the pixel format.
Implement image scaling

This involves libswscale. Second image specified is scaled to the size
of the first image.
Add functions to dump frame to PGM

Useful for debugging.