merge with null_pointer fork

do not use a file, load image into memory and write our from memory, no
file needed use urlopen and set no proxy

remove the thread as it was redundant with the current approach go back
to using the original getUrl that can use gzip