refactor (imgpros.cpp) : Added comments