still can't require images properly, but works otherwise