break htmlelement class into different methods
break IMG class in different methods
fixed problems in the last commit.
Merge pull request #1 from acabhishek942/master

Making the code modular.