Added quick hacky fix to allow for image streams to be used instead of
image files.