{} missing.
Use inline_style, not echo of css.
Few small brackets.
Fix case where $image is not defined.