prevent error on png conversion