Added resources, output, smart resize, correct text placing