Fixed some more bugs, added divide factor to im::filter
fixed some im::filter issues, added divide_factor to it