Fixed comments and create function thumb scale and save proportion