Update MainActivity.java

First update of MainActivity activity; includes extended if statement and primary canvas / bitmapdrawable declaration.