First when images insert into dtabase crop the images in coding.
use the webservices and jquery.
Supoose tha you have a table that imageiD,ImageName etc.
then create a method foreach select Image
public string getAllImages()
{
if (user.identity.Isauthenticated)
{
ImageClass[] objclass=ImageClass.Get(convert.toint32(imageID));
if(objclass!=null)
{
foreach(Imageclass obj in objclass)
{
stringbuilder sb=new stringbuilder();
sb.Append("+obj.ImageName+");
}
}
return sb.tostring();
}
..................
then this service call on click useing jquery..
}