image module optimize since image  loading  take too much time

converted image into 1000 pixel if it is above thousand pixel for gallery only