add load method and get data and image size