check this thing to resize images after upload