Changed back to 32 bit and simplified picture import function