more convenient fix
moved pyopencl command calls to accelerator.py
moved image I/O to its own file