simple PHP to JSON gallery backend