Previous fix made it possible to change devices without restarting program,
this has been re-enabled, image simulation is disabled upon changing device.
Merge pull request #80 from ADyson/OpenCLDeviceFix

Previous fix made it possible to change devices without restarting progr...
added ability to save as PNG and JPEG
Tidy up
Merge pull request #85 from ADyson/SaveFormats

Added save formats
Centre can be set in gui
Detector rings are now drawn with shifts
Simulations now uses detector center
Fixed error in displaying detectors
STEM/TEM panels now swap out depending on selection. Leaves space for new controls
restored TDS functionality to CBED
Started fixing problems with probe position
Merge branch 'master' of https://github.com/ADyson/clTEM
Made changes to correct position of probe
Added checck to make sure cbed position is in simulation limits
Fixed masked textbox to check regex on delete and backspace press
Upadeted regex to allow blank (for convenience)
Fixed bugs that allow no blank values to be set for areas/detectors
Try parse may have been parsing blank string as 0
Minor updates to kernels, phase of ew displayed now instead of absolute value.