fixed the issue of stretched pictures