decoupled resources form media as much as I could
able to add methods to Image, now that we have uncoupled it from media
update cat example to use getWidth/Height