implement export as JPEG
implement forEach
add todo for XML part