* rewrite show image logics.