resize sampleimage