fixed inline image bug