c# code and jpg elements