How to convert any drawing to various image formats