Your problem is your class is in the source folder already, so you don't need to reference it when loading the image. Try removing the "src/" completely when loading the image.
I edited my code like your suggestion yesterday without trying it out because I was tired and thought it was going to do nothing.
I just tried it out and everything works perfectly! Thanks for the help everyone!Edit:
Follow-up question out of curiosity: What use is there in using my original method of grabbing images since it doesn't work after exporting?