Converting an image from drawable to byte array in Android Tutorials