Revert +fix "handle empty images properly"

This reverts commit 710b662383c78dbfbf79c3599ca5c467d098532c.

Conflicts:
	src/writers.c