imroved styling for img mode