setting image dimension as 500x500