add interdependency between factor and reconstruction resolution,
as it makes no sense to create a reconstructed image with a higher
resolution than possible
fix possible memleak
properly check for file types