moved itoopieImage inside HTTPConnection
fixed race condition