Made changes so I can add things in my code in the future
Separeted valid image extentions to a different file