a script that takes pictures with white background and estimates the amount of pixels