Added new functions, fixed disabling interop for grayscale images