some improve for image viewer