updated Image class