added methods for zero and dark subtraction on images
fixed bugs, now works seamlessly