Update: It appears there is a conflict with NextGen Gallery Plugin and your plugin. When NextGen Gallery is deactivated, your plugin works perfectly. When NetGen Gallery is reactivated, your plugin stops working.