add two API for image file management.