Didn't import the UIKit and that's why I wasn't able to place the optional image. Asked why I was getting an error, and someone pointed out I needed to import the lib first.