Issue with reading image property with a Luau script

When running a script that should read image values I keep getting Nil, while reading other properties in the same script such as numbers and booleans work.