made some members of ImageWidget private and added setting slots.