Image bugs 991

fix #991