making 2d image scaler, sample image and updating query-er
committing this code before deleting it
deleting unused code