Bug fix and default handler if no target screen dimensions supplied