Welcome to ETO .. .. .
I'm not sure you have your interface connections right yet, they don't seem to match those on the ILI9341 datasheet.
I would suggest you use one of the example sketches in Arduino IDE to make sure your connections/setup is correct before you try to run a more complex sketch.
Look here .. ..
Then when you have that running correctly you have a fighting chance with the more complex sketch.
Yes, currently shown as IM1 = low; IM0, 2 & 3 high.
Also interface between screen and Arduino - I can't read the pin ID's on the screen ( ageing eyesight ) but they don't look right ? The Arduino example sketches have the pin ID's marked out to make it easy to identify them.
There was wiring issue after correct connection and using of correct library with arduino it is now working. Actually i was using library of arduino uno after search i got that it was uno library as pin initialization was wrong but all good now after reading arduino datasheet.