Refactoring Model_Media->get_img_tag() and get_img_tag_resized(), use HTML::img for return tag with attributs