PNG tiling with SDL