Added method to convert an ArrayList<Images> to Json