https://www.rainbowbreeze.it/java-image-conversion-to-byte-array/
Java: Image conversion to byte[] array