WordPress tinyMCE Keep Wrapping Tags To HTML Codes When Saving

I use this on my instals to get rid of p tags around images:

/*
*
* Remove annoying <p> tags on images, messes with my shizzle
*
*/


function my_filter_ptags_on_images($content)
{
    return preg_replace('/<p>(\s*)(<img .* \/>)(\s*)<\/p>/iU', '\2', $content);
}

add_filter('the_content', 'my_filter_ptags_on_images');