Added auto display for STM iamges and fixed bug in lineprofile