You could have the image upload happen when the tweet is posted.  That would be a simpler way to start.