error unwrapping nil from optional

 in func filteredImageFromImage