Resize images using the GD library