Organized some render code
Fixed the transparent pixels being drawn as darkness (thanks TGG)