 	int ytrans;
 	int dwidth;
 	int dheight;
-	find_dest(transform, width, height, &xtrans, &ytrans, &dwidth, &dheight);
+//	find_dest(transform, width, height, &xtrans, &ytrans, &dwidth, &dheight);
+//
+//	float *output = (float *) malloc(sizeof(float) * dwidth * dheight * 3);
+//	for (int i = 0; i < dwidth*dheight*3; i+=3)
+//	{
+//		output[i] = 1;
+//	}
+//
+//	apply_transform(input, output, transform, width, height, xtrans, ytrans,
+//			dwidth, dheight);
+//
+//	printf("writing output image trans_out.exr\n");
+//	writeOpenEXRFile("trans_out.exr", output, dwidth, dheight);
+	
+	//Testing with original image unmoved
+	float *new_trans = (float *) malloc(sizeof(float) * 18);
+	for (int i = 0; i < 9; i++)
+		new_trans[i] = transform[i];
+	new_trans[9] = 1;
+	new_trans[10] = 0;
+	new_trans[11] = 0;
+	new_trans[12] = 0;
+	new_trans[13] = 1;
+	new_trans[14] = 0;
+	new_trans[15] = 0;
+	new_trans[16] = 0;
+	new_trans[17] = 1;
+
+	find_dest_multi(new_trans, 2, width, height, &xtrans, &ytrans, &dwidth, &dheight);
 
 	float *output = (float *) malloc(sizeof(float) * dwidth * dheight * 3);
 	for (int i = 0; i < dwidth*dheight*3; i+=3)

	float *input;
	readOpenEXRFile(argv[1], &input, width, height);

	float *transform = (float *) malloc(sizeof(float) * 9);\
	transform[0] = 0.707;
	transform[1] = -0.707;
	transform[2] = 100;

		output[i] = 1;
	}

	apply_transform(input, output, new_trans, width, height, xtrans, ytrans, dwidth, dheight);
	writeOpenEXRFile("multi_trans.exr", output, dwidth, dheight);

	apply_transform(input, output, &new_trans[9], width, height, xtrans, ytrans, dwidth, dheight);
	writeOpenEXRFile("multi_orig.exr", output, dwidth, dheight);


	free(transform);
	free(output);
	free(input);
