Replace all printStackTrace with the correct logging method. Log images failing to load or invalid file formats. Maybe add a warning popup.