Image resizing for Laravel, inspired by Drupal's image handling