fixed thumbnail not properly resizing square images