fix the bug in appending image in exising notes without resources attribute