style update and img input bug fix