To fix the resolution you might need to check the image contains in the dataset. Since, if you take a max resolution of to preserve details can increase computational load while average size of suppose (224x224) may not be ideal. I recommend to use padding which will maintain the aspect ratio and use a standard resolution of 256x256. Review scaled images again to find the best resolution.
I Hope that'll help you.