At age 13, you still have a long way to go in growing and developing, but it's safe to say there are a ton of guys out there who would wish to look like you. I can honestly say you kind of look cute and remind me of your average schoolboy that's smart and funny. I don't understand why your peers would think of you as unattractive. Maybe all you need is a boost in confidence and self esteem and shine within, so people can see the inner you bursting through. Showing the inner you that is attractive maximizes your physical appearance. It's also true sometimes that boys are more handsome the older they get. Don't think, though, that appearance is all you have, because I'm sure that's not true.
The first picture is probably a bad shot because your eyes have dark circles around them that make you look almost like a zombie. The face is blurry, so it's hard to make out details. Your second picture...is ADORABLE! You also have a cool pose. Your face glows, and you look extremely confident.
My own honest opinion as a 16-year-old girl.