I prefer a mix of both, the names of method 1, with class rather than ID.
Method two by itself is alright but I think it could lead to css bloat later down the road, especially if you intend to continue using generic classes like name and image for other elements.