Test embedded png
Fix potential uninitalized variable accesses
Fix CURL warnings
Fix unused variable warnings