writing png images enabled