Add methods to Photo class, implemented conversion between bitmap and byte array