Changed name of image directory path varible
Updated most operations to use JSON serializer