image processing functions

Added functions which make merged and extended focus  for ICC