Renamed image variables and load the resources from within a try-catch block to catch exceptions