Support offline mode for image