fixed some header imports and moved image size definitions to app context
added error handling to the tumblr api call