Added better tests for filtering the image command