fixing bug with saving image from twitter