added image exists and ws exists to api