Modified the image benchmarks to try various optimizations.
Optimization: added the i_size member to the Image class.
Image class: fixed an issue where PGM files were corrupt.