changed export feature and fixed stretching issue at resize