fixed compile errors caused by optionals

Used force unwrapping. However if the UIImage creation fails, the app will crash. Let's keep the fingers crossed.