css and image preview working. all attributes can be set