added JSON data and Dynamic Image Function