better handling of missing images