adding GetBlog function to get the data for an image