Getting a warning when $images is null