Image generation with presets inspired from drupal's Imagecache