@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FrameLayout layout = new FrameLayout(this);
    layout.setBackgroundColor(Color.BLACK);

    SquareImageView imageView = new SquareImageView(this);
    imageView.setBackgroundColor(Color.WHITE);
    imageView.setId(IMAGE_ID);

    FrameLayout.LayoutParams matchParent =
        new FrameLayout.LayoutParams(
            ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
    layout.addView(imageView, matchParent);

    setContentView(layout);

    square = imageView;
  }