add styles for floating inline and block images