fix bugs on image upload layout