Make $width, $height strings

Null is not a scalar
Add caching support for png and gif
Add caching for files uploaded in comments