Deformation in polymer thin films