Does the custom background feature have a file size Limit?

I want to change my background but when I try it doesn’t switch. Maybe the file size is too big? (24MB)jpeg.