allow img wxh to be set