change to image only and remove unused codes

change to image only and remove unused codes