forked from: Dark Background

Added resize handler