Added static OpenCV libs and fixed memory error

Added static initialization for the OpenCV libraries and fixed and an
OutOfMemory Exception by making sure that the image matrices and the
ImageView bitmap are cleared before reuse.