adding getBackgroundSizeFrom method