Version 1 of urltopng class