Image variables not specified correctly