added imgObj to constructor. May be binding stuff too tightly