Added test indices for query function
Testing function for summary package
Made image bounds explicit arguments in query
Minor formatting changes
Removed unneccesary imports