var/icon/I = file("foobar.jpg")
world << I //This works for some reason
I.Scale(50, 50) //Cannot execute null.Scale()
var/icon/I = new("foobar.jpg") //bad icon operation
var/icon/I = new(file("foobar.jpg"))//Returns a blank image
Problem description:
When I read an image from a file, I can't do anything to it except output. When I use any kind of proc, DM crashes and says "Cannot execute null.Scale".
I've been trying all kinds of ways to read in the file, but none of them are working.