Reformat of code, moving gif to correct location under resources