Added method to retrieve HTML dimension attributes
Added convenience function for image tag generation
Just use htmlspecialchars for escaping the html attributes tags