For focusing - when taking pics, have you tried tapping on the part that you want focused? My HTC One sometimes seems to focus on the brighter lights but when I tap what I want focused, it responds pretty well. I think in your case it's the same? The brighter areas seem to be more focused on.
However, I have no idea about the lines appearing in your photo ;S. My best advice to you would be to get it replaced. I'd say give factory resetting your phone a shot but if it's your actual camera that's affected, i dont think it'll make a difference.
Hope your issue goes away though!
Posted via Android Central App