fix problem with right alligned images