put together check for inside box and image
added some debug lines for printing alpha/beta/w_r_c
Taking current_pixel values directly from neighbourhood

added possibility to print relative weights (for debugging)