image autosize problem on database orientation

i made a site and users can see uploaded image in a predetermined area. for i made this, i connect users uploaded image to a database. but there is a problem. users uploaded images are not autosize. you can see more detailed on this link ;
Do you have a solution for this problem?

Thank you.