Script now check if jpg is valid and moves gifs and videos to respective folders.
TODO:
 - Remove global variables
 - Create more functions
 - Start from scrath the code to speed up the script :)