fixed paragraph issue on painting image pages