Simple image scaling algorithm with filters.