fixed margin problems on conditional embeded ruby code/img