support float left and float right for images