Added test case for img manipulations and removed some debug statements.
Added pgm images for testing.