Refactoring: Now using resources instead of image paths