Changed resize method to make pictures look better