fixed bug preventing png generation without x11