Add SECRET_KEY for testing
Convert images to RGBA before resizing

This ensures that the image is antialiased. Closes #192