added img-res (wip)
added img-res basic functionality