Now able to serve slide images
Made error handling more generic