Fixed compiler warnings

Fixed the following compiler warnings:
 - implicit conversion loses floating-point precision: 'double' to 'CGFloat'
 - multiple methods named 'setBackgroundColor:'