Changed the threshold and radius drawing parameters so that instead of
being calculated from the UI, they are now saved and processed as
absolute values (radius in pixels and threshold in percentages).
Fixed behavior when getting out of bounds of the canvas.
Fixed a bit of code with the filepicker so that only PNG JPG and GIF are
allowed.