support upload image from web

add patch to support upload image from web