How can I rewrite the output of image field to become a div with this image as a background image?
Set all fields to "Exclude from display", add a "Global: Custom text" field and then build your html there using the "Replacement patterns" available.

I assume this still works in drupal 8.