Added graph and image layout and js