Fixed overflow bug in bloom/blur effects - github issue #985