Cleaned up picture posting code after reading curl tutorial.