updated query_sizes and added image export to seperate directory