refactored class into resize
rename method from octopress
Refactor to move the serialize metadata file into metadata class