added first image resize feature