rewrite the function 'complete.image';
fix the display bugs