remove dead store
resolve potential ARC leaks by casting to UIImage