Added test image function and csv function