Fix removebrackets bug in image-based alternatives
Fixes errors in expressions like (x+3)^2/3 where the left paren was being removed