method added in ImageClass