I added fuction for resize images