using object to replace image