php sample code. this class can change image's size.