add inspect api returning width and size of a image